//
//  PageStyleView.h
//  ebook
//
//  Created by 吴超飞 on 16/3/11.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ReaderConfig.h"

@class PageStyleView;
@protocol PageStyleViewDelegate<NSObject>

//翻页方式
-(void)pageStyleView:(PageStyleView*)view changePageStyle:(PageTurnStyle)style;
//横屏、竖屏
-(void)pageStyleView:(PageStyleView *)view orientationIsLandscape:(BOOL)isLandscape;
//自动阅读
-(void)pageStyleView:(PageStyleView *)view autoReadingBtnClick:(UIButton *)btn;

@end



@interface PageStyleView : UIView

@property (nonatomic,weak) id<PageStyleViewDelegate> delegate;
@property (nonatomic,assign) BOOL isNight;

-(instancetype)initWithReaderConfig:(ReaderConfig *)config;

@end
